A pub purported to be the oldest in Britain is closing because of financial difficulties 1,229 years after it was established.