Brain’s flexible hub network helps humans adapt