Buy-to-build group cuts losses but debt nears £1bn