Reds hold on for 10-7 win over Diamondbacks