The term structure of interest rates in a DSGE model