How synaptic plasticity affects the stochastic resonance in a modular neuronal network