The number of pubs in England and Wales has fallen by 7,000 in a decade, research suggests.