Swimming in the shadow of Scottish castles A coastal ruin, a Reformation fortress, Mary Queen of Scots’ island prison and a Tweed-side tower make for four atmospheric dips near Edinburgh