Virtual retraction and Howson’s theorem in pro-$p$ groups