Endogenous Liquidity and Capital Reallocation