Nestlé, the world's largest food group, has shrugged off surging energy and commodity costs to post strong sales and earnings growth in the first half.