Israel's prime minister was warned twice in the months before 7 October that Hamas and Iran-backed groups might capitalise on the 'internal weakness' caused by