Formula 1 has confirmed a historic 10-year deal to return to Africa, with Rwanda set to host the African Grand Prix from the early 2030s rather than South Africa's Kyalami.