Ant behavioral maturation is mediated by a stochastic transition between two fundamental states