Nearly half of all female teachers in schools across Scotland have been subjected to violence in the last 12 months.