New or Used? Investment with Credit Constraints