Comcast, the company’s owner, said he was leaving after an investigation into inappropriate conduct with an employee.