CNBC's Jim Cramer said semiconductor and AI infrastructure stocks have replaced software as the market's technology leaders.