Lakhdar Brahimi resigns as UN mediator for Syria