The chief executive of HSBC has stepped down after the bank said that it needed a change in leadership to address a 'challenging global environment'.