Tighter cost control and rising food sales have boosted profits at upmarket UK retailer Waitrose.