Treasury Secretary Janet Yellen said Thursday on CNBC's "Closing Bell" that the U.S. economy will have “several more months of rapid inflation.”