An enterprising man came to the rescue when a rogue swimming hat threatened to delay a race at the FINA World Championships.