Investment and Capital Market Imperfections: A Switching Regression Approach Using U.S. Firm Panel Data