Heterogeneous Beliefs and Optimal Taxation