Profits at the UK’s biggest supermarket were hit as customers put fewer items in their baskets amid rising costs.