A state of emergency has been declared in the South Island cities of Christchurch, Otago, Timaru and Dunedin after some areas were hit with more than 200 millimetres of rain in 24 hours.