Trade and Development under Imperfect Capital Markets