Academies system is dysfunctional, says education union