Gustavo Martinez was accused in a lawsuit filed by the ad agency’s chief communications officer of subjecting employees to racist and sexist behavior.