France has banned influencers from promoting dangerous cosmetic surgery and extreme dieting products to protect young people.