Margetts struck after nine and 12 minutes before sealing his hat-trick from the spot two minutes before the break.
United were much-improved after the interval but they did not come closer than rattling the crossbar in the first half through Cameron Johnson.