thyroid and mental problems