Mark Cavendish has vowed to stay involved in cycling after winning his last ever race at the Tour de France Prudential Singapore Criterium.