Swimmer Emma McKeon, Australia's most decorated Olympian, announced her retirement from the sport on Monday aged 30.