Theresa May has taken a swipe at young people who have gone on strike from school to protest about a lack of action on tackling climate change.