A French ban on the production and sale of cosmetics and most clothing containing polluting and health-threatening "forever chemicals" goes into force on Thursday.