Scientists sniff out how to stop pets fighting like cat and dog