Indonesian President Prabowo Subianto has cancelled a planned trip to China amid escalating protests.