Weighted $L^p$ estimates for the area integral associated to self-adjoint operators