Parts of Maryland have received nearly a foot of rain in just two days, with flash floods prompting officials to declare a state of emergency.