Prime minister’s note to ministers repudiates older views on globalisation and immigration