Social media platforms are behaving like “digital gangsters” and should be forced to comply with a regulated code of ethics to tackle harmful or illegal content on their sites, a Commons committee has demanded.