Leader has purged senior colleagues even as leftwing parties try to build a united front for parliamentary elections