Australian Olympic champion Mack Horton has announced his retirement from swimming six months out from the Paris Games.