Programmed cell death can increase the efficacy of microbial bet hedging