A Royal Navy serviceman has been charged with spying for a foreign country, believed to be Russia, after an investigation by counter terror police.