Magnetic properties of the ferrimagnetic cobaltite CaBaCo4O7