Defender Denzel Dumfries scored his fourth goal in five games as Inter Milan beat lowly Empoli 3-1 to keep pace with Serie A leaders Napoli.