Consumer goods maker Unilever posted a higher-than-expected rise in sales for the first half of the year.