Phased release of Israeli hostages, Palestine prisoners in Israel and aid flow into Gaza among major points agreed in the deal, mediators say