Russian attack submarines, the most in two decades, are prowling the coastlines of Scandinavia and Scotland, the Mediterranean Sea and the North Atlantic in what Western military officials say is a significantly increased presence aimed at contesting American and NATO undersea dominance.