The vanishing viscosity limit for Hamilton-Jacobi equations on networks