Brazil's JBS, the world's largest beef firm, has abandoned plans to buy National Beef Packing Co., the fourth-largest beef processor in the US.