Finland's Jari-Matti Latvala held off team-mate Sebastian Ogier to clinch a second straight World Rally Championship victory at the Rally Finland.