Plans have been approved for a new pharmacy in Hartlepool at a property which has been left vacant for more than a decade.