Method of treating a fabric by washing with a detergent comprising an acrylamide/DADMAC cationic polymer