p-brane dyons, θ-terms and dimensional reduction