Large investment funds run by groups such as Fidelity and T Rowe Price are being forced to offload shares to avoid getting into trouble with US tax authorities, as this year’s lopsided stock market rally has pushed them up against strict limits requiring them to maintain diversified portfolios.