Thousands of marchers have attended pro-Palestine protests across Australia, with the biggest gatherings taking place in Sydney and Melbourne.