CNBC’s Jim Cramer advised investors to set their sights on long-term market themes like artificial intelligence.