Nairobi beats London, Munich and Rome to become the first African hosts, World Athletics says.