Food is the trick. Open the food screen and drop a carrot, apple or sugar cube into your foal's pen roughly once every few hours — once a day is fine. Each offering raises both the food meter and the confidence meter by about half a star each.
I am fairly confident in that rather than certain, but the pattern held consistently in my game. Repeat over several in-game days and the trust fills up.