A severe rainstorm has struck Bosnia, leaving at least 14 people dead and flooding towns and villages in central and southern parts of the country.