HST/COS FUV spectroscopy of an Ha-emitting filament in M87, and a physical model for the structure of the filament