Those are ferrite rings used to make inductors. They are used on signal wires to absorb spikes injected into them from high power motors or any other radiated signals.
The reason ferrite rings only appear on bigger ESCs (apart from cost!) is that the high currents flowing through the motor wires increases the likelihood of spike voltages being generated in signal wires.