Interactions between strains govern the eco-evolutionary dynamics of microbial communities