JBS, the Brazil-based meat group, has booked lower profits for the second quarter on the back of higher costs, although sales grew year-on-year.