Radio halos in galaxy clusters: insight from a mass-selected sample