Factors affecting criminal behaviour