The origins and impact of primate segmental duplications