Solution of the size and horizon problems from classical string geometry