US dairy firm Land O'Lakes has recorded a drop in first-half earnings as the company continued to face economic challenges and "volatile" markets.