More than 5,000 runners breathed new life into the Liverpool Marathon as the race returned to the city for the first time since 1992.