A 10-month-old girl drifted hundreds of yards out to sea after her parents said they forgot about her before being rescued.