Sir Robert Gordon, 1st Baronet — Scottish courtier and historian