Magnetism and electronic structure of the intermetallic compound Ce5CuBi3