Hurricane Irma, possibly the most forceful Atlantic storm in a century, was heading for Puerto Rico and the Virgin Islands.