US meat giant Tyson Foods has booked a drop in second-quarter earnings after the group saw a deterioration in its beef margins.