UK retailer The Co-operative Group has booked an increase in first-half profits, despite what it described as a "challenging" year to date.