It says the floods also destroyed or damaged 8,000 public buildings and washed out roads , bridges and railways .