Hundreds of people marched in Jerusalem against an unexpected agreement between Israel and Hamas for a Gaza ceasefire and the release of hostages.