Egypt to free Jazeera's Fahmy pending 'formalities'