Floods show NSW dam project flawed: expert