People with mental health conditions can find it harder to stop spending too much online, a charity says.