Egypt declares month-long state of emergency