Spain is to trial putting labels on certain foods indicating the origin of milk, following moves made by other EU member states that have sparked criticism in parts of the industry.