Weighted Hardy and Poincaré Inequalities on Trees