A court has sentenced Bosnian Serb President Milorad Dodik to one year in prison and banned him from politics for six years over his separatist actions.