Tsunami warnings have been issued across Japan after a powerful 8.2-magnitude earthquake struck near the Philippines, with waves expected within hours.