Correlations in separated quantum systems: A consistent history analysis of the EPR problem