Electronic spectrum and magnetic properties of CsMnBr3