Egypt's Mursi leaves palace as police battle protesters