The Royal Mail Group has reached an agreement with the Communication Workers Union (CWU) over USO reforms following months of intense discussions.