Woakes ruled out of remainder of final Test