Microsoft, other tech companies increase layoffs, slow hiring