Formula One is set to return to Africa for the first time in more than three decades after Rwanda signed a 10-year deal to host the race.