Ex-UAW president resigns from union in 'unprecedented' move