Inflation, Endogenous Market Segmentation and the Term Structure of Interest Rates