A powerful 6.5 magnitude earthquake has rocked Mexico, with residents of the country's capital seen running out onto the streets.