Independent bookshops are turning into treasured cultural hubs as UK towns and cities begin to lose their quirky features.