The French government is to introduce a scheme that will make it obligatory for food and drink adverts to carry health messages.