The maintenance of biodiversity in water-limited plant communities