U.S. President Donald Trump's communications director Mike Dubke is leaving the job, the White House said.