CNBC’s Jim Cramer said investors should be more selective when investing in the semiconductor rally.