Statistical Guarantees for Link Prediction using Graph Neural Networks