An asymptotic theory for sample covariances of Bernoulli shifts