‘Welcoming technology firms is different from letting them do anything they like’, William Hague warned