The integrand is ill-defined here. See the documentation for hcubature.
Try with
f(x) = a*x[1]^2 + b*x[2]^2