Tens of thousands of Sri Lankans, led by a former president, have congregated in the capital to demand a new government.