Experimental observation of controllable kinetic constraints in a cold atomic gas