The US eastern seaboard has been rocked by a 5.9 magnitude earthquake that was felt in New York, D.C, Detroit and Canada.