Firms' investment decisions in response to demand and price uncertainty