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