Orbital textures and charge density waves in transition metal dichalcogenides