A first constraint on the average mass of ultra-diffuse galaxies from weak gravitational lensing