US meat processor Tyson Foods has said it plans to reduce its workforce by around 5%, or nearly 6,000 people, and invest in the automation of some of its facilities.