Trade Costs, Asset Market Frictions, and Risk Sharing