A 12-year-old girl is suing her school over its policy that pupils must wear face masks while they are in its buildings.