Cotilting versus pure-injective modules