Katie Ledecky credits Ariarne Titmus for 'making me better'