No. 7 North Carolina beats rival NC State 86-74