Scientists have found a chronic shortage of females in a critically endangered parrot species has led to love triangles, sneaky sex on the side, increased fighting between males and fewer babies.