Social categorization and similarity in intergroup behaviour