A threshold theorem for the Reed-Frost chain-binomial epidemic