Russia has denied halting gas flows in retaliation for Western sanctions on Moscow over the invasion of Ukraine.