Heavy rain has sparked flash flooding around New Zealand's capital, closing roads and forcing some residents to evacuate.