Barneys boss Howard Socol is to leave the luxury clothing chain at the end of June, the company has confirmed.