Two modes of evolution shape bacterial strain diversity in the mammalian gut for thousands of generations