US poultry processor Pilgrim's Pride has reported higher half-year profits as a lower cost of sales helped offset a dip in sales.