Police: man robbed homes of people attending funerals