Brain regulates social behaviour differently in males and females