Government set to introduce legislation by the end of the year which prohibits young people from using social media