Subdirect products of pro-p groups