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