The shadow justice secretary is accused of racism after saying the Handsworth area was one of the "worst-integrated".