Australian female octopuses have developed a surprising way to deal with unwanted male attention.