Method and device for manufacturing a product of a composite material of reinforcing elements