Hundreds of homes and agricultural areas have been flooded in northwestern Bosnia and Herzegovina due to heavy rainfall over several days.