Variation in the degree of specialization can maintain local diversity in model communities