Train services were disrupted until close on Friday and the North Wales main line was affected