CNBC's Jim Cramer said investors should use the latest market rotation as an opportunity to buy high-quality companies.