A powerful earthquake has struck off Japan’s northern coast but there was no danger of a tsunami, the country’s meteorological agency said