Dynamical persistence in resource-consumer models