Titmus sets up swim rivalry with Ledecky