The macroeconomy and the yield curve: a dynamic latent factor approach