Optimal consumption and the timing of the resolution of uncertainty