Ben Stokes will join the England squad in New Zealand after he pleaded not guilty to a charge of affray in court on Tuesday, the England and Wales Cricket Board (ECB) said.