Egyptian authorities have arrested Sami Anan, a former military general, after denying him permission to run in presidential elections in March.