Police should reveal the ethnicity and immigration status of criminal suspects, Yvette Cooper has said.