U.S. Securities and Exchange Commission (SEC) chair Gary Gensler is leaving the regulatory agency after nearly four years in office, paving the way for an immediate replacement by President-elect Donald Trump.