The U.K. competition regulator said on Wednesday that it would investigate Nvidia’s $40 billion takeover of Arm, the largest-ever deal in the semiconductor industry.