The UK was struck by lightning between 15,000 and 20,000 times as the "mother of all thunderstorms" rolled across southern England overnight.