Few-Shot Goal Inference for Visuomotor Learning and Planning