Homeowners have been given advice on what they can legally do when a neighbour’s branches spread into their garden