Process and plant for separating a magnetic, phosphorus-containing compound from a dry mass by dry magnetic separation