Minimax Regret Learning for Data with Heterogeneous Subgroups