On the essential norm of the Cauchy singular integral operator in weighted rearrangement-invariant spaces