President Hosni Mubarak of Egypt struggled to maintain a tenuous hold on power on Saturday as the police withdrew from the major cities and the military did nothing to hold back tens of thousands of demonstrators defying a curfew to call for an end to his nearly 30 years of authoritarian rule.