The US federal government has declared a major disaster in the state of Louisiana after severe flooding rendered thousands of people homeless.