Parts of the United Kingdom have been swamped by heavy rains and powerful winds that disrupted New Year's celebrations.