Confusion between sex and gender identity in official data has dangerous implications, review warns