Joel Ewanick, General Motors’ global marketing chief, is leaving the company, the automaker said in a statement Sunday.