Hongkong and Shanghai Banking Corporation (HSBC) has decided to cut 35,000 jobs worldwide over the next three years.