Subsidies, Entry and the Distribution of R&D Investment