Credit Suisse CEO Tidjane Thiam has resigned, as the bank struggles to move on from last year’s spying scandal.