Teachers in Edinburgh are being scratched, bitten and having bones broken in attacks by pupils, according to a union leader.