Thousands protest austerity measures in Rio