Formalising the demand for technological innovations: Rational herds, market frictions and network effects