Chiral anomalies and the generalised index theorem