Biodiversity of marine microbes is safeguarded by phenotypic heterogeneity in ecological traits