Egypt declares state of emergency