A girl has been charged with three counts of attempted murder after the stabbings at a Welsh school.