Nearly 16 million people have been displaced by flooding in Bihar, where 338,000 houses have collapsed, officials said.