Mali President Toure resigns in deal with coup leaders