Strength of species interactions determines biodiversity and stability in microbial communities