Biodiversity and ecosystem dynamics: stochastic transitions in a Holling–Tanner model with harvesting and fear