Consistent truncations in Kaluza-Klein theories