Large deviations in the reinforced random walk model on trees