Inflation rate slows as housing and gas prices rise