HP cuts up to 4,000 jobs worldwide