A model of GAM intermittency near critical gradient in toroidal plasmas