Despite warnings from authorities, people have been trapped after trying to drive through floodwaters.