Bose condensation in flat bands