Polymers characterised by the presence of specified groups, e.g. terminal or pendant functional groups