Egypt overturns life sentence against ex-president