Lebanese prime minister Hariri resigns