New York's Mayor, Michael Bloomberg, has told residents to stay indoors as Hurricane Irene barrels up the east coast towards the city.