The environment of H i-bearing ultra-diffuse galaxies in the ALFALFA survey