Learning and the Role of Macroeconomic Factors in the Term Structure of Interest Rates