US stocks close higher to bounce back from last week's losses