Bayer reported a steep drop in second-quarter earnings as weak agricultural markets hit its crop-science division.