Man rescued after months at sea