A video purporting to show the mass beheading of Coptic Christian hostages has been released by militants in Libya affiliated with the Islamic State group.