A Royal Navy nuclear submarine collided with a French vessel in the middle of the Atlantic Ocean, it has emerged.