UN head says social media, AI fuelling ‘worst human impulses’