Competition and diversity in herbaceous vegetation