Obama joins mourners in US shooting town