A Macro-finance Model of the Term Structure with Time-varying Market Prices of Risk