Geometrically frustrated crystals : Elastic theory and dislocations