Hundreds of thousands of Palestinians are being ordered to leave the city of Rafah in southern Gaza as the Israeli army prepares to expand its ground operations.