Thousands flee northern Gaza after Israel warnings