Consumer prices were up 5% in May compared with one year ago, marking the biggest surge since the Great Recession in 2008.