Ceremony takes place for decommissioned Royal Navy flagship