The welfare effects of liquidity constraints