University Principal Professor Sir Timothy O’Shea has received the city of Edinburgh's highest annual accolade.