Symmetries and weak localization and antilocalization of Dirac fermions in HgTe quantum wells