Wrexham finally clinched promotion from the National League as champions, beating Boreham Wood 3-1 to seal the top spot.