How much lactose did you use and what were your mash temps? Also, what yeast?
My thoughts: lactose and high mash temps are going to give you less fermentable sugars, especially when both are being used. If you're using a low attenuating yeast that could do it as well.
The foam you're seeing...