Firm investment in imperfect capital markets: A structural estimation