Thousands flee region under martial law in Philippines