Thousands of people have taken to the streets in Sydney and Melbourne as communities around the world welcome a ceasefire between Israel and Hamas.