The observed concentration–mass relation for galaxy clusters