Cognizant, a multibillion-dollar IT services company with clients in the banking and oil and gas industries, said its computer systems had been disrupted by Maze ransomware, a strain of malicious code that has been used in cyberattacks in the U.S. and Europe in recent months.