David Hamilton, the Scottish Information Commissioner, said the decision had not been taken lightly