Wrexham beat a youthful Manchester United side 3-1 at Snapdragon Stadium in front of watching co-owner Rob McElhenney.