Egypt's Mubarak wins appeal for retrial