Counterfactual-Consistency Prompting for Relative Temporal Understanding in Large Language Models