Tons of chilled and frozen food was spoiled last month as fridges and freezers in hundreds of supermarkets heated up.