The role of frequency dependence in dynamical gap generation in graphene