Campaign context and preference dynamics in US presidential elections