Exciton-driven quantum phase transitions in holography