US meat processor Smithfield Foods is to vacate a plant in San Jose, California, and transfer production to other sites.