Labour MP Jared O'Mara has quit the Commons equality committee over online homophobic comments he made before being elected to parliament