Localization of waves and particles on the comb lattice