Joe Root hit his 32nd Test century for England and celebrated with a ramp shot on day four against West Indies at Trent Bridge.