Tens of thousands of people have protested in the UK against the government's plans for public spending cuts.