Inflation would be a lot closer to the Federal Reserve's goal of a 2% annual rate if the stock market wasn't doing so well, according to a new analysis.