Prosecutors open investigation into South Korean president’s attempt to put country under martial law