President Macron has asked the government to rewrite France's proposed social media ban for children.