Heavy rain causes flooding across the UK