Record rainfall causes Minnesota to declare state of emergency