A functional model for adult stem cells in epithelial tissues