Bankruptcy, Investment, and Financial Constraints