Annan quits as Syria mediator