A funeral mass has been held for one of the teenagers killed in a head-on collision in County Kildare last week - with a heavy police presence at Carlow for the event.