Consumer confidence unexpectedly rises in July