Reconstructing CMB fluctuations and the mean reionization optical depth