One of Canada's largest cities, Montreal, has declared a state of emergency to cope with rising floodwaters along rivers swollen by torrential spring rains.