Head boy diagnosed with terminal cancer delivers emotional speech at prize-giving ceremony