Flooding in Jakarta prompts thousands to flee