A community has been warned to move their cars to higher ground as heavy rainfall causes a river to break its banks.