Dutch retailer Ahold has booked an increase in first-half profits but its shares fell amid pressure on margins and the company's caution over future trading.