Nigeria's former vice president resigns from ruling APC