US tech giant to cut 12,000 jobs worldwide