The inquiry has focused on the role played by intelligence agencies. It found there were warnings the risk of a terror attack was growing.