Stanford QB retires from football