Indonesia’s central bank intervened in the foreign-exchange markets as the rupiah set a new record low.