Ukraine's prime minister resigns in televised address