Dangerous thunderstorms have wreaked havoc across South Australia, damaging homes and leaving thousands without power.