Minimising systematic uncertainties in the T2K experiment using near-detector and external data