Pastor apologises to Whole Foods, withdraws lawsuit over anti-gay cake