Spin-fluctuation and spin-relaxation effects of single adatoms from first principles