The cost of maintaining a retired Royal Navy ship that was due to be sold to Brazil has been revealed.