A bound for the exponent of the Schur multiplier of some finite p-groups