Pygmy resonance and low-energy enhancement in the $\gamma$-ray strength functions of Pd~isotopes