Food and drinks containing certain artificial colourings will have to carry warnings, under a proposed EU deal.