Technological Spillovers, Product Market Rivalry and R&D Investment