Some people assume buying a foreclosed property will be a great investment but that may not be the case. Here are several factors to consider.