Ariarne Titmus has broken Katie Ledecky’s 400m freestyle world record at Australian Swimming Championships.