Florian Thauvin was Marseille's hero as he scored a delightful volley in a five-goal thriller against Ligue 1 strugglers Troyes.