Heat from sewers in Scotland could warm a city as big as Glasgow for over four months a year, according to figures.