Danone has recorded an increase in first-half profits as its waters division posted "solid" sales growth.