Sainsbury's has revealed plans to cut more than 3,000 jobs.