Metrics on diffeomorphism groups in symplectic and contact geometry