Risk Sharing Through Financial Markets with Endogenous Enforcement of Trades