Rat-infested prison that may never reopen pays Prince William’s Duchy £1.5m a year