Robert Mugabe resigns as president of Zimbabwe