A volcanic eruption in Indonesia has grounded all flights at Jakarta's main airport, stranding thousands of passengers.