UK banks have been participating in a simulated cyber attack run by the Bank of England in a bid to test their defences.