Bosnia's government has declared a state of emergency after at least 16 people were killed in flooding and landslides caused by a severe rainstorm.