At least twice in LoTR:FotR, ringwraiths cower away from bodies of water. The second time (the ford of Bruinen) can be explained away by their fear of some Elvish magical trap through the enchantment of the water; but what about the first time, at the ferry? One of the Nazgul could have easily made the jump onto the barge and quickly dispatched of those pesky Hobitsses.
A note in The Hunt for the Ring, in Unfinished Tales explains:
This is the citation referred to in Royal Canadian Bandit's answer.
So your answer is that in-universe there was never an explanation given, whereas out-of-universe it's just a plot device.
It is common in folklore for evil or "unnatural" creatures to be unable to cross running water. For example, this is a traditional attribute of vampires: http://en.wikipedia.org/wiki/Vampire
Tolkien himself noted that this idea was difficult to sustain for the Ringwraiths. In particular, they would have had to cross the river Greyflood (which had no bridge or ferry) in order to travel from Mordor to the Shire. (I don't have the citation to hand, it may have been in Unfinished Tales.) He seems to have gone ahead with it anyway, in order to emphasise that the Ringwraiths were inhuman, undead creatures.
Ulmo = "He Who Pours" (a.k.a Lord of Waters) controls even underground waters in Arda. Ulmo, second most powerful of the Valar, totally opposed Melkor's (and thus Sauron's) program of dominating the Creation.
The Ring Wraiths are as anti-creation as you can get. To cross into (as opposed to over) Ulmo's domain would unmake the Nine (cf. the crossing of the Greyflood and their loss of form in LotR).
The Nine kings were given nine rings by Sauron. These rings modified them into the creatures that they became, creatures of darkness and evil. Their form or bodies perished and they had to wear armor and cloaks in order to be visible to others.
Wraith means ghost, spirit or something out of shadow, shadowy.
Since they cannot die, for they are not among living I will say that they can be "perished" or "ended", and use these word in this answer.
The Nine fear light, fire and water. They fear two of the key earthly elements of this world. They fear light and reside in shadow and cannot show a true form in this world. Hence the armor and cloaks which they wear. If we say they are the creatures of the darkness, than that statement would be true; but if we say they fear water because they are creature of the darkness, than that would be false for they also fear fire (we can associate fire with both good and bad). In the end some of them were "ended" by fire.
At this point, we can also speculate that they also fear the elements earth and air. Let me further explain this:
In LOTR we see that they fear forms of hot, cold and wet - from the above we can deduce that they also fear the dry form. They can only be "perished" by fire, or enhanced weapons (any of the above), but we can speculate that they can be "perished" by any of the above in an enhanced form. In truth, they fear all the elements of this world for they are the creatures of the shadow (the Wraith).
Furthermore there is another theory in which each of the elements have three properties, so we can provide a connection to the LOTRs "perishing" of the nine. Fire is sharp, subtle, and mobile while its opposite, earth, is blunt, dense, and immobile.
They can be "perished" or "ended" by fire. Which is Sharp, Subtle, Mobile, we can also find one of fire's properties in water Mobile.
So, in theory and as a connection to LOTR. Three of these properites need to be present in order to "perished" or "ended" a wright. We could see that in LOTR, but one or two of these properties can potentially harm it. Two of them seen in air and one of them in water.
From this we can deduce that they cannot be "perished" or "ended" by water but they can be harmed by it.
Additionally, the Nine cannot see like men do and don't like to walk and hunt in daylight, but at night in shadow.
Crossing the river for them was a nuisance.
They crossed the river in fear, anger and disgust, but they knew that it wouldn't kill them in the end. It would mean the end to their horses (enhanced by evil, but still horses of this world) and their hunt, but not them. They knew they could lose this battle if they crossed it, but it was all that they could do at that point in time, for they are drawn to the One Ring like nothing else in this and their world (the world of shadow). In truth, they had to cross the river, they had no choice, for Sauron, and for the One Ring.
After this, the Nine received improved new mounts that wouldn't stop them at rivers, the Fell beasts.
This aura also protects them from the properties in elements, which I have talked about above in this answer. Their aura can poison water and pollute the air around them. Leaving them unharmed and protected.
They were physically weaker in the LOTR - Fellowship of the Ring, as also their aura was weaker. We could see that from the crossing of the water and small portions of fire when Aragorn drove them away with two burning sticks.
Situation which you are referring to with the ferry, only happened in the movie and not the book. For in the book the Nazgul arrive later and find that there are no more boats left for them to cross the river on.
It is very plausible that it is a holdover of the power of Ulmo. See this forum thread for more...