A Royal Navy nuclear-powered submarine was used to warn off one of Russian President Vladimir Putin’s spy ships operating around UK waters.