Text this: Regularising experimental correlations in LHC data: theory and application to a global analysis of parton distributions