Joe Root resigns as England Test captain