Ben Stokes nearly walked away from cricket after the nightclub controversy before a dramatic 72-hour turnaround eased retirement fears