Nuclearity of rapidly decreasing ultradifferentiable functions and time-frequency analysis