Gap's CEO Art Peck announced he is leaving the company ahead of the retailer's plan to split off from its Old Navy brand.