UK agrees to conditionally recognise Palestine as a state