Retailers cannot be forced to stock a drink or food brand in freezers or fridges, even when they are lent for free by a manufacturer, the European Court of Justice (ECJ) has ruled.