Digital books and the ongoing pandemic have impacted the business of bookshops. But those with rare collections of old books seem likely to survive