Thousands of people in Muslim countries and beyond have held demonstrations in solidarity with Palestinians in the Gaza Strip.