Unified Theory of Reality and solution to the measurement problem