Bayesian estimation of the basic reproduction number in stochastic epidemic models