The term structure of risk premia with heterogeneous preferences and beliefs