On the variance of the sum of digits function