Non-traded goods, factor markets frictions, and international capital flows