Man jailed for posting sex video of ex-girlfriend on social media