The Effect of Financial Constraints on R&D Investments