Typhoon leaves thousands of South Korean homes powerless