Social-media sites used by Islamic State militants in recent months have included numerous accounts of the buying and selling of sex slaves.