A former Royal Navy flagship could be sold to Brazil after being decommissioned to cut costs, reports say.