Symmetry reduction of the RISM equation