Investigation of rare nuclear decays with BaF2 crystal scintillator contaminated by radium