Lt General Herzi Halevi becomes highest-ranking official to step down over 7 October attack that sparked Gaza war