A 39-year-old man has been arrested following an incident at the Palace of Holyroodhouse, the Queen's official residence in Edinburgh.