On the evolution of the snow line in protoplanetary discs