Dispersion-free states and the exclusion of hidden variables