US dairy group Dean Foods has reported a jump in half-year profits as a focus on costs offset flat sales.