Shoppers can only buy three of any particular food item as supermarkets crack down on stockpiling.