UN: Most deaths from Libyan flooding could have been avoided