Inflation rose in May as stronger economic growth fueled concerns over prices and possible interest rate hikes.