TSMC, the world’s largest contract chipmaker, said a number of its computer systems had been infected by a virus