Worried about a drop in tech stocks? How to play defense with your portfolio.