Group boundaries promote the spread of ideas