A cancer risk model with adaptive repair