Opposition Labour lawmaker Sadiq Khan is elected mayor of London, final results show, making him the first Muslim mayor of a major Western capital.