Vietnam president resigns amid major anti-graft purge