J.C. Penney and hedge fund Pershing Square’s Bill Ackman are in talks to resolve their dispute over the leadership of the U.S. retailer.