Correlation of the quasi-biennial oscillations in galactic cosmic rays and in the solar activity indices