Proposed legislation would force social media firms to prevent those under 16 from accessing social media platforms.