TANDEM: Learning Joint Exploration and Decision Making with Tactile Sensors