A powerful earthquake with a preliminary magnitude of 6.8 has caused buildings to sway in Mexico’s capital