Nearly half of headteachers have reported pupil images being used for harmful acts including blackmail and extortion, new research reveals