Welfare Rigidity, the Composition of Public Expenditure and the Welfare Trap