Successive British governments have said they would recognise a Palestinian state when it was most effective to do so.