Start the day with students pair programming and then split them up; it makes later collaboration natural and reduces frustration.
When giving group work to students in class, assign students roles and have them introduce themselves to ensure your students feel comfortable asking each other for help.