Quake hits northern Japan but causes little damage