Former IDF chief rabbi’s resignation comes amid possible union between his party and Yamina, whose leader and former Jewish home head Naftali Bennett demanded Peretz’s resignation as prerequisite for alliance