Hidden symmetries of two-field cosmological models