Den som kysser någons hand utan samtycke gör sig skyldig till ett sexuellt övergrepp, slår Spaniens högsta domstol fast.