HSBC to exit M&A, capital markets companies in UK, Europe and U.S.