Phase Transitions in the Pooled Data Problem