England's Ben Stokes suffered a recurrence of his hamstring injury at the end of the third day of the third Test against New Zealand.