You have to socialise but you should not go beyond your line. Its better to talk whenever needed. Should definitely avoid gossips about colleagues. When someone tries to engage you in such useless conversation tell them straight that you are not interested. Be a person of empathy.