On the first crossing distributions in fractional Brownian motion and the mass function of dark matter haloes