A rise in second-quarter earnings was not enough to arrest a fall in first-half profits at Dean Foods, the largest dairy group in the US.