Ventilation system with heat recovery