The Bank of England says there were “serious failings” in HSBC’s measures to protect customer deposits.