Dairy firm Land O'Lakes said it has recorded a "solid" set of first-half results, driven by improved agricultural markets and innovation.