Localization of algebras over coloured operads