Study shows dreams help us to remember what's most important to us