Credit constraints and investment in Latin America