Dynamic Agency Theory meets the Q-Theory of Investment