Beijing invests millions to keep bookshops open