Renormalization group analysis of reduced magnetohydrodynamics with application to subgrid modeling