South Korea president announces resignation