Man floats in sea for three hours holding tri-colour aloft