Charge density wave states in tantalum dichalcogenides