A 26-year-old man has been charged following an extensive investigation into a spate of house break-ins and car thefts across the Lothians and Borders.