CLASH-VLT: The stellar mass function and stellar mass density profile of the z = 0.44 cluster of galaxies MACS J1206.2-0847