HSBC is to shut down parts of its investment banking operations in the UK, Europe and the Americas as bosses continue their overhaul of the banking giant.