Hosszu sets world record to win 400m individual medley gold