The federal government has introduced digital safety legislation that would introduce a ban on social media for kids under 16.