CUPID: Curating Data your Robot Loves with Influence Functions