Social behaviour as a function of context in a cockroach