The Malaysian prime minister has resigned