Former German chancellor writes in autobiography Freedom she was pained by thoughts about whether there was more she could have done to help David Cameron prevent UK from leaving bloc