Marks & Spencer has notched up a better-than-expected jump in half-year profits thanks to buoyant food and clothing trading, but cautioned over an “uncertain” consumer backdrop and rising costs.