Behavioural attributes towards collective energy security in thermal energy communities