Japan and the Philippines have agreed to further strengthen defence ties amid rising geopolitical tensions in the region.