Marks and Spencer's food business has driven an increase in quarterly sales at the UK retailer.