There’s a scientific explanation behind all your bad (and good) relationship habits