PM Ranil Wickremesinghe had said he was willing to resign as thousands demonstrate over the economic crisis.