State of emergency declared after floods kill 23