Titmus, famous for beating US swim star Katie Ledecky at the Paris Games, was expected to compete in the 2028 Olympics.