A Royal Navy submarine has been used to warn off one of Vladimir Putin’s spy ships operating around UK waters.