A piper who was confronted by a mob in the city centre has presented a cheque for £19,000 to a band, following a fundraiser.