France has approved a blanket ban on under-15 children using social media, the first European country to introduce such a restriction.