On sharp rate of convergence for discretisation of integrals driven by fractional Brownian motions and related processes with discontinuous integrands