Heavy rain and strong winds lashed parts of Scotland and the north of England, disrupting some journeys by train and car and playing spoiler to many public parties.