Herman Cain: Communities have right to ban mosques