Brigitte Macron was given a male name on her personal tax record by a team of hackers, a French government official has said.