An earthquake with a preliminary magnitude of 7.5 has struck off Japan’s northern coast, prompting a tsunami alert across the region.