Electronic instability in the kagome materials