South Korea's president has said he will lift the emergency martial law order he had declared just hours earlier.