Carrier-borne epidemics in a community consisting of different groups