Léon Marchand set a new world record in the 200m individual medley at the World Championships in Beijing.