Australia has enacted a nationwide ban on social media for those under 16, aimed at protecting young people's mental health.