Leaked cables from the early 2000s show how ministers scrapped plans to rescue a warship understood to be HMS Sussex in case it would threaten relations with Spain.