How clustering dark energy affects matter perturbations