Violence in Cairo as the president defies army ultimatum