UK formally recognizes state of Palestine, premier announces