The Israel Defence Forces has admitted the attacks by Hamas on October 7 2023 were "a complete failure" of Israeli security and the result of many years of planning and deception by the Gaza-based militant group.