Young man who beat brain cancer twice graduates with distinction after missing school for two years