Galaxy formation at z ~ 3: Constraints from spatial clustering