Egyptian novelist and cultural editor who writes on the history of religions, philosophy and Arab heritage