Australian swimmer Grant Hackett has admitted that poor health earlier this year almost ended the former world record holder’s hopes of competing at a fourth Olympic Games in Rio de Janeiro.