Groups in which every non-cyclic subgroup contains its centralizer