Costly External Finance, Corporate Investment, and the Subprime Mortgage Credit Crisis