UK retailer Marks & Spencer has seen first-half profits rise over 9% amid flat food sales over the last six months.