Chancellor tells Sky News social media companies have a moral duty to take down violent and harmful content as she says lessons need to be learned.