I have 3 LED lights in my bathroom ceiling, and when the cord is pulled these flicker and stay off, or occasionally turn on normally (10% of the time).
Having spoken to an electrician I know, I replaced the lamps, however this hasn't helped.
Each lamp is attached to it's own transformer - see...