US dairy company Dean Foods has posted a first-quarter profit, compared to a year earlier loss, helped by strong sales of branded products such as Silk soymilk and Hershey's flavoured drinks.