Learning in Real Time: Theory and Empirical Evidence from the Term Structure of Survey Forecasts