Smithfield Foods, the largest pork producer in the world, warned of a potential shortage after nearly 300 employees tested positive for coronavirus.