Molecular dynamics simulations are used to investigate the structure and mechanical properties of a simple two-dimensional model of a cohesive granular material. Intergranular forces involve elasticity, Coulomb friction, and a short-range attraction akin to the van der Waals force in powders. The effects of rolling resistance (RR) at intergranular contacts are also studied. The microstructure of the cohesive packing under low pressure is shown to depend sensitively on the assembling procedure which is applied to the initially isolated particles of a granular gas. While a direct compression produces a final equilibrated configuration with a similar density to that of cohesionless systems, the formation of large aggregates prior to the application of an external pressure results in much looser stable packings. A crucial state variable is the ratio P;{*}=PaF_{0} of applied pressure P , acting on grains of diameter a , to maximum tensile contact force F0 . At low P;{*} the force-carrying structure and force distribution are sensitive to the level of velocity fluctuations in the early stages of cluster aggregation. The coordination number of packings with RR approaches 2 in the limit of low initial velocities or large rolling friction. In general the force network is composed of hyperstatic clusters, typically comprising four to a few tens of grains, in which forces reach values of the order of F0 , joined by barely rigid arms, where contact forces are very small. Under growing P;{*} , it quickly rearranges into force chainlike patterns that are more familiar in dense systems. Density correlations are interpreted in terms of a fractal structure, up to a characteristic correlation length xi of the order of ten particle diameters for the studied solid fractions. The fractal dimension in systems with RR coincides, within measurement uncertainties, with the ballistic aggregation result, in spite of a possibly different connectivity, but is apparently higher without RR. Possible effects of micromechanical and assembling process parameters on mechanical strength of packings are evoked.