UV physics and the speed of sound during inflation