Effects of understanding resource depletion and response consistency on cooperative behaviour of children