Australian teen Ariarne Titmus shocked Olympic champion Katie Ledecky to win the 400 meters freestyle title at the world championships in Gwangju on Sunday.