Thousands of people have rallied in Sydney and Melbourne as communities around the world welcome a hoped-for ceasefire between Israel and Hamas.