Thousands left without power as heavy rain, thunderstorms hit Australian states