Top tech firms commit to AI safeguards amid fears over pace of change