Towards Robust and Adaptive Motion Forecasting: A Causal Representation Perspective