Three Russian submarines were detected by the UK in the North Atlantic loitering over critical undersea cables, the defence secretary said.