Bank of Scotland (BoS) has been fined by a regulator for breaking sanctions related to Russia's war in Ukraine.