Block or graft polymers prepared by polymerisation of aldehydes or ketones on to macromolecular compounds