Dean Foods has booked a drop in first-half profits, hurt by the cost of its out-of-court settlement with dairy farmers in the south-east of the US.