Modelling the survival of bacteria in drylands: the advantage of being dormant