Mortgage rates hit long-time highs as housing affordability drops