Higher spin gauge fields interacting with scalars: the Lagrangian cubic vertex