Peers who used to be MPs are more likely to be male, white and older – and their loyalty to their party is often a significant factor in their appointment.