Magnetism of a Co monolayer on Pt(111) capped by overlayers of $5d$ elements: a spin-model study