A ban on the use of social media by children has come into force in Australia, becoming the first such measure in the world.