Stuart Broad took a hat-trick as England beat a New Zealand XI side by 46 runs in the rearranged T20 warm-up match in Whangarei.