US dairy firm Land O'Lakes saw earnings slump in the first quarter due to a charge relating to the settlement of a class action lawsuit.