Ophelia brings power cuts and rail disruption to Scotland