The Hampshire Cos. has leased up a newly renovated office building in downtown Morristown after securing a nearly 17,000-square-foot deal with Sanofi’s Consumer Healthcare unit.