Hardy-Poincaré inequalities and applications to nonlinear diffusions