Hurricane Gonzalo has roared through Bermuda, cutting power to most of its inhabitants and threatening floods.