Home Depot and Lowe’s have struggled this year, but UBS analysts say they’re due to benefit as homeowners reach a tipping point with units built during the mid-2000s housing boom.