Planet formation and disc mass dependence in a pebble-driven scenario for low-mass stars